package com.jinsp.network;

import android.util.Log;

import com.google.auto.service.AutoService;
import com.jinsp.networklibrary.command.ITCPCommand;

import java.util.List;

/**
 * Created by luoshuai on 1/15/22
 */
@AutoService(ITCPCommand.class)
public class TestCommand implements ITCPCommand<List<Test>, Test> {

    private List<Test> list;

    @Override
    public int getCommandNumber() {
        return 106;
    }

    @Override
    public void handleCommand(int state, Object data) {
        Log.e("TAG", "handleCommand: " + data);
    }

    @Override
    public List<Test> getCommandData() {
        return list;
    }

    @Override
    public void setCommandData(List<Test> t) {
        this.list = t;
    }

    @Override
    public boolean isMainThread() {
        return false;
    }
}
